package gui2.g4;

import java.util.List;

import javax.swing.DefaultListModel;

public class ChatListModel extends DefaultListModel implements ChatModelListener{

	@Override
	public void messageAdded(List<ChatMessage> allMessages) {
		ChatMessage m =allMessages.get(allMessages.size()-1);
		if(m.getMsg().equals("Bin kurz AFK")){
			return;
		}
		addElement(allMessages.get(allMessages.size()-1));
	}

	


}
